-- GENERATED SPELL FOR [Coilfang Myrmidon] --


function spell0_17800(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17800', 527, 1)
end

function spell1_17800(pUnit, Event) --@Execute,n/a--
pUnit:FullCastSpellOnTarget(7160,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17800', 0, 1)
end

function Sorts_17800(pUnit, Event)
local choix_sorts_17800 = math.random(0, 1)
if choix_sorts_17800 == 0 then
pUnit:RegisterEvent('spell0_17800', 1, 1)
end
if choix_sorts_17800 == 1 then
pUnit:RegisterEvent('spell1_17800', 1, 1)
end
end

function mob17800_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17800', math.random(1500, 3000), 1)
end

function mob17800_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17800_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17800_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17800, 1, 'mob17800_Action')
RegisterUnitEvent(17800, 2, 'mob17800_Leave')
RegisterUnitEvent(17800, 3, 'mob17800_Kill')
RegisterUnitEvent(17800, 4, 'mob17800_Die')
